<?php /* Smarty version 2.6.16, created on 2011-10-28 15:17:08
         compiled from registration-student.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'registration-student.tpl', 31, false),)), $this); ?>
 <?php echo '
<script language="javascript" type="text/javascript">

function CheckFields()
{
  if(document.getElementById(\'game_id\').value==\'\' ) 
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please select a game");
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);
    return false;
   }
  return true;
}  

</script>
'; ?>


 <div class="right-panel">
      <div class="findstudent-title"><h1 title="Profile"><span>Registration</span></h1>
        <div class="breadcrumb">Add Game</div>
        <div class="clear"></div>
	  </div>
      <div class="register">
	   <div id='FormErrorMsg' style="color:red; text-align:center; padding-bottom:10px;"><?php if ($this->_tpl_vars['ermsg'] != ''): ?> <?php echo $this->_tpl_vars['ermsg'];  endif; ?> </div>
      <form name="register" id="register" action="" method="post">
         <fieldset>
            <label>Select Game :</label>
            <select name="game_id" id="game_id" class="selectbox" >
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['GameArr'],'selected' => $this->_tpl_vars['Formval']['game_id']), $this);?>

			</select>
            <p class="clear"></p>
            <label>Experience :</label>
            <textarea  name="experience" id="experience"></textarea>
            <p class="clear"></p>
           
            <label>&nbsp;</label>
            <input name="submit" class="submit" value="Submit" type="submit" onclick='return CheckFields()' />
            <input name="" class="cancel" value="Cancel" type="reset" />
         </fieldset>
      </form>
      </div>
      
      
      
      <div class="clear"></div>
   </div>